package com.example.oppotest.entity.youku;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author wyk
 * @Date: 2025/2/26 21:52
 */
public class Effpoint {

    private Integer id; // 序号

    private String appKey; // 子客户密钥appKey

    private String token; // 子客户token

    private String event_type; // 回传事件类型

    private String deep_conv; // 是否深度转化 0单目标 1双目标

    private String creative_id; // 广告投放创意id （联调期间不填默认110001，正式投放的时候用实际的创意ID）

    private String track_id; // 追踪关联广告投放维度的id

    private String url; // 生成链接

    private String result; // 结果

    private Integer transform; // 转化因子

    private String lid; // 由我方提供,渠道参数(xianyu)

    private String xianyuUrl; // 闲鱼手机端链接（安卓或IOS）

    private String choose; // 闲鱼上报(曝光/点击)


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getEvent_type() {
        return event_type;
    }

    public String getEvent_typeStr() {
        Map<String, String> map = new HashMap<String, String>();
        map.put("wake", "唤醒app");
        map.put("favorite", "收藏");
        map.put("download", "下载");
        map.put("install", "安装");
        map.put("register", "注册");
        map.put("active", "激活");
        map.put("login", "登录");
        map.put("pay", "付费");
        map.put("visit", "到访");
        String ret = map.get(event_type);

        return ret == null ? "" : ret;
    }

    public void setEvent_type(String event_type) {
        this.event_type = event_type;
    }

    public String getDeep_conv() {
        return deep_conv;
    }

    public String getDeep_convStr() {
        Map<String, String> map = new HashMap<String, String>();
        map.put("0", "单目标");
        map.put("1", "双目标");
        String ret = map.get(deep_conv);

        return ret == null ? "" : ret;
    }

    public void setDeep_conv(String deep_conv) {
        this.deep_conv = deep_conv;
    }

    public String getCreative_id() {
        return creative_id;
    }

    public void setCreative_id(String creative_id) {
        this.creative_id = creative_id;
    }

    public String getTrack_id() {
        return track_id;
    }

    public void setTrack_id(String track_id) {
        this.track_id = track_id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public Integer getTransform() {
        return transform;
    }

    public void setTransform(Integer transform) {
        this.transform = transform;
    }

    public String getLid() {
        return lid;
    }

    public void setLid(String lid) {
        this.lid = lid;
    }

    public String getXianyuUrl() {
        return xianyuUrl;
    }

    public void setXianyuUrl(String xianyuUrl) {
        this.xianyuUrl = xianyuUrl;
    }

    public String getChoose() {
        return choose;
    }

    public void setChoose(String choose) {
        this.choose = choose;
    }

    public String getChooseStr() {
        Map<String, String> map = new HashMap<String, String>();
        map.put("0", "曝光上报");
        map.put("1", "点击上报");
        map.put("2", "无");
        String ret = map.get(choose);

        return ret == null ? "" : ret;
    }

    @Override
    public String toString() {
        return "Effpoint{" +
                "id=" + id +
                ", appKey='" + appKey + '\'' +
                ", token='" + token + '\'' +
                ", event_type='" + event_type + '\'' +
                ", deep_conv='" + deep_conv + '\'' +
                ", creative_id='" + creative_id + '\'' +
                ", track_id='" + track_id + '\'' +
                ", url='" + url + '\'' +
                ", result='" + result + '\'' +
                ", transform=" + transform +
                ", lid='" + lid + '\'' +
                ", xianyuUrl='" + xianyuUrl + '\'' +
                ", choose='" + choose + '\'' +
                '}';
    }
}
